package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.vo.web.Catalog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xuweixing
 * @email xuweixing@gmail.com
 * @date 2021-05-08 17:02:39
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryWithTree(Map<String, Object> params);

    void removeMuneByIds(List<Long> asList);

    Long[] getCatelogPath(Long catelogId);

    void updateRelation(CategoryEntity category);

    List<CategoryEntity> getLive1Categorys();

    Map<String, List<Catalog2Vo>> getCatalogJson();
}

